tuple1=(1,2,2,3,4)
print(tuple1.count(2))
print(tuple1.index(2))
print(len(tuple1))
print(min(tuple1))
print(max(tuple1))
print((3 in tuple1)) #返回布尔类型
print((3 not in tuple1)) #返回布尔类型

tuple2=1,2,2,3
a,b,c,e=tuple2 #拆包
print(tuple2) #自动组包

for a in tuple2:
    print(a)

for a in range(len(tuple2)) :
    print(tuple2[a])


